<%@tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@attribute name="item" required="true" type="cn.livingCloud.dto.MemberDto" %>

<td>${item.nickname}</td>
<td>
    <c:if test="${item.sex eq '1'}">男</c:if>
    <c:if test="${item.sex eq '2'}">女</c:if>
    <c:if test="${item.sex eq '0'}">未知</c:if>
</td>
<td>
    <span class="label label-primary">${item.province}</span>
</td>
<td>
    <span class="label label-primary">${item.city}</span>
</td>

<td>
    <c:if test="${not item.state}">
        <span class="label label-danger">禁用</span>
    </c:if>
    <c:if test="${item.state}">
        <span class="label label-success">启用</span>
    </c:if>
</td>
<td>
    <span class="label label-info">${item.createTime}</span>
</td>
<td>
    <c:if test="${not item.state}">
        <button type="button" class="btn btn-success ChangeState" uuid="${item.uuid}" nickname="${item.nickname} "
                state="true">启用
        </button>
        <input type="hidden" name="uuid" value="${item.uuid}">
    </c:if>
    <c:if test="${item.state}">
        <button type="button" class="btn btn-warning ChangeState" uuid="${item.uuid}" nickname="${item.nickname}"
                state="false">禁用
        </button>
    </c:if>
</td>

